#include <stdio.h>

int num[20];
int n;

void select_sort()
{
    int min,minwh,tmp;
    for(int i=1;i<n;i++)
    {
        min = num[i];
        minwh = i;
        for(int j=i+1;j<=n;j++)
        {
            if(num[j]<min)
            {
                min = num[j];
                minwh = j;
            }
        }
        tmp = num[i];
        num[i] = min;
        num[minwh] = tmp;
    }
}

int main()
{
    scanf("%d",&n);
    for(int i=1;i<=n;i++) scanf("%d",&num[i]);
    select_sort();
    for(int i=n;i>1;i--) printf("%d ",num[i]);
    printf("%d",num[1]);
    return 0;
}